/*  1:   */ package com.rinsi.app.home;
/*  2:   */ 
/*  3:   */ import com.rinsi.core.CoreCache;
/*  4:   */ import com.rinsi.core.service.CoreSimpleService;
/*  5:   */ import com.rinsi.util.ListUtil;
/*  6:   */ import com.rinsi.util.MapUtil;
/*  7:   */ import java.util.List;
/*  8:   */ import java.util.Map;
/*  9:   */ import org.mybatis.spring.SqlSessionTemplate;
/* 10:   */ import org.springframework.stereotype.Service;
/* 11:   */ 
/* 12:   */ @Service
/* 13:   */ public class HomeService
/* 14:   */   extends CoreSimpleService
/* 15:   */ {
/* 16:   */   public void afterIndex(Map<String, Object> model, Map<String, Object> rMap)
/* 17:   */   {
/* 18:19 */     Map<String, Object> config = getConfig(model);
/* 19:   */     
/* 20:21 */     Map<String, Object> params = getParams(model);
/* 21:   */     
/* 22:23 */     rMap.put("organs", CoreCache.getCacheList(MapUtil.getString(params, "UID"), "organs", "ORGAN_TYPE=9"));
/* 23:   */     
/* 24:25 */     rMap.put("jds", getSqlSessionTemplate().selectList("Core.getCodeList", Integer.valueOf(800011)));
/* 25:   */     
/* 26:27 */     rMap.put("xxggs", getSqlSessionTemplate().selectList(namespace(config) + ".listXxgg"));
/* 27:   */     
/* 28:29 */     rMap.put("zcfgs", getSqlSessionTemplate().selectList(namespace(config) + ".listZcfg"));
/* 29:   */     
/* 30:31 */     rMap.put("works", getSqlSessionTemplate().selectList(namespace(config) + ".listWork", params));
/* 31:   */     
/* 32:33 */     rMap.put("azgqs", getSqlSessionTemplate().selectList(namespace(config) + ".listAzgq", params));
/* 33:   */     
/* 34:35 */     rMap.put("xkzs", getSqlSessionTemplate().selectList("Core.getCodeList", Integer.valueOf(210002)));
/* 35:   */     
/* 36:37 */     rMap.put("scxkzs", getSqlSessionTemplate().selectList("Core.getCodeList", Integer.valueOf(210001)));
/* 37:   */     
/* 38:39 */     rMap.put("jjlxs", getSqlSessionTemplate().selectList("Core.getCodeList", Integer.valueOf(400002)));
/* 39:   */     
/* 40:41 */     rMap.put("kcfss", getSqlSessionTemplate().selectList("Core.getCodeList", Integer.valueOf(3)));
/* 41:   */     
/* 42:43 */     rMap.put("xxzts", getSqlSessionTemplate().selectList("Core.getCodeList", Integer.valueOf(210003)));
/* 43:   */     
/* 44:45 */     List<Map<String, Object>> modules = CoreCache.getCacheList(MapUtil.getString(params, "UID"), "modules");
/* 45:   */     
/* 46:47 */     List<Map<String, Object>> sub_rights = ListUtil.subList(modules, "MODULE_NO='600'");
/* 47:   */     
/* 48:49 */     model.put("sub_rights", ListUtil.listToMap(sub_rights, "MODULE_TYPE"));
/* 49:   */   }
/* 50:   */   
/* 51:   */   public Map<String, Object> selectAqxkz(Map<String, Object> model)
/* 52:   */   {
/* 53:55 */     Map<String, Object> params = getParams(model);
/* 54:   */     
/* 55:57 */     Map<String, Object> config = getConfig(model);
/* 56:   */     
/* 57:59 */     Map<String, Object> rMap = getRMap();
/* 58:   */     try
/* 59:   */     {
/* 60:63 */       rMap.put("data", getSqlSessionTemplate().selectOne(namespace(config) + ".selectAqxkz", params));
/* 61:   */     }
/* 62:   */     catch (Exception ex)
/* 63:   */     {
/* 64:67 */       rMap.put("success", Boolean.valueOf(false));
/* 65:   */     }
/* 66:71 */     return rMap;
/* 67:   */   }
/* 68:   */ }


/* Location:           D:\Users\Desktop\shanxi\项目\sxazmis\WEB-INF\classes\
 * Qualified Name:     com.rinsi.app.home.HomeService
 * JD-Core Version:    0.7.0.1
 */